//
//  TXPFragmentModel.m
//  StayAwhile
//
//  Created by dllo on 16/1/29.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "TXPFragmentModel.h"
#import "TXPFragmentUserModel.h"
@implementation TXPFragmentModel

- (void)setValue:(id)value forUndefinedKey:(NSString *)key{
    if ([key isEqualToString:@"tag_info"]) {
        self.tag = [value objectForKey:@"tag"];
    }
}
- (void)setUserinfo:(NSMutableDictionary *)userinfo
{
    _userinfo = userinfo;
    TXPFragmentUserModel *model = [[TXPFragmentUserModel alloc] init];
    [model setValuesForKeysWithDictionary:userinfo];
    self.model = model;
}
@end
